package com.vichat.user.entity;


import javax.persistence.*;
import java.util.Date;

/***************
 *author: autogen
 *version: 2019-01-10 16:32:35.528
 */
@Entity
@Table(name = "recharge_record",catalog = "ccsdb")
public class RechargeRecord implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "recharge_record";

    /**记录编号 */
	public static final String ALIAS_RCD_ID = "rcd_id";
    /**对象1用户编号 */
	public static final String ALIAS_OBJ1_UID = "obj1_uid";
    /**对象1用户名称 */
	public static final String ALIAS_OBJ1_UNAME = "obj1_uname";
    /**对象1企业编号 */
	public static final String ALIAS_OBJ1_PARTY_ID = "obj1_party_id";
    /**对象1企业名称 */
	public static final String ALIAS_OBJ1_PARTY_NAME = "obj1_party_name";
    /**对象1类型: 1 客服 2 代理商 3 企业 */
	public static final String ALIAS_OBJ1_TYPE = "obj1_type";
    /**操作类型:1 账号充值 2 代理商充值  3 客服充值 */
	public static final String ALIAS_BUSI_TYPE = "busi_type";
    /**对象2用户编号 */
	public static final String ALIAS_OBJ2_UID = "obj2_uid";
    /**对象2用户名称 */
	public static final String ALIAS_OBJ2_UNAME = "obj2_uname";
    /**对象2企业编号 */
	public static final String ALIAS_OBJ2_PARTY_ID = "obj2_party_id";
    /**对象2企业名称 */
	public static final String ALIAS_OBJ2_PARTY_NAME = "obj2_party_name";
    /**对象2类型: 1 客服 2 代理商 3 企业 */
	public static final String ALIAS_OBJ2_TYPE = "obj2_type";
    /**操作之前数据 */
	public static final String ALIAS_CHG_BEFORE = "chg_before";
    /**操作之前数据 */
	public static final String ALIAS_CHG_AFTER = "chg_after";
    /**操作值 */
	public static final String ALIAS_CHG_VALUE = "chg_value";
    /**业务类型：1.充入 2.充出 */
	public static final String ALIAS_CHG_TYPE = "chg_type";
    /**备注信息 */
	public static final String ALIAS_REMARK = "remark";
    /**操作IP */
	public static final String ALIAS_UIP = "uip";
    /** */
	public static final String ALIAS_CREATE_TIME = "create_time";
    /**被操作人员编号 */
	public static final String ALIAS_UID = "uid";
    /**被操作人员姓名 */
	public static final String ALIAS_UNAME = "uname";
    /** */
	public static final String ALIAS_EXT1 = "ext1";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "rcd_id", unique = true, nullable = false)
    public java.lang.Long rcdId;
  
 	@Column(name = "obj1_uid")
    public java.lang.Long obj1Uid;
  
 	@Column(name = "obj1_uname")
    public java.lang.String obj1Uname;
  
 	@Column(name = "obj1_party_id")
    public java.lang.Long obj1PartyId;
  
 	@Column(name = "obj1_party_name")
    public java.lang.String obj1PartyName;
  
 	@Column(name = "obj1_type")
    public java.lang.Long obj1Type;
  
 	@Column(name = "busi_type")
    public java.lang.Long busiType;
  
 	@Column(name = "obj2_uid")
    public java.lang.Long obj2Uid;
  
 	@Column(name = "obj2_uname")
    public java.lang.String obj2Uname;
  
 	@Column(name = "obj2_party_id")
    public java.lang.Long obj2PartyId;
  
 	@Column(name = "obj2_party_name")
    public java.lang.String obj2PartyName;
  
 	@Column(name = "obj2_type")
    public java.lang.Long obj2Type;
  
 	@Column(name = "chg_before")
    public java.lang.String chgBefore;
  
 	@Column(name = "chg_after")
    public java.lang.String chgAfter;
  
 	@Column(name = "chg_value")
    public java.lang.Long chgValue;
  
 	@Column(name = "chg_type")
    public java.lang.Long chgType;
  
 	@Column(name = "remark")
    public java.lang.String remark;
  
 	@Column(name = "uip")
    public java.lang.String uip;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;
  
 	@Column(name = "uid")
    public java.lang.Long uid;
  
 	@Column(name = "uname")
    public java.lang.String uname;
  
 	@Column(name = "ext1")
    public java.lang.String ext1;
  





	public java.lang.Long getRcdId() {
		return this.rcdId;
	}
	
	public void setRcdId(java.lang.Long value) {
		this.rcdId = value;
	}

	public java.lang.Long getObj1Uid() {
		return this.obj1Uid;
	}
	
	public void setObj1Uid(java.lang.Long value) {
		this.obj1Uid = value;
	}

	public java.lang.String getObj1Uname() {
		return this.obj1Uname;
	}
	
	public void setObj1Uname(java.lang.String value) {
		this.obj1Uname = value;
	}

	public java.lang.Long getObj1PartyId() {
		return this.obj1PartyId;
	}
	
	public void setObj1PartyId(java.lang.Long value) {
		this.obj1PartyId = value;
	}

	public java.lang.String getObj1PartyName() {
		return this.obj1PartyName;
	}
	
	public void setObj1PartyName(java.lang.String value) {
		this.obj1PartyName = value;
	}

	public java.lang.Long getObj1Type() {
		return this.obj1Type;
	}
	
	public void setObj1Type(java.lang.Long value) {
		this.obj1Type = value;
	}

	public java.lang.Long getBusiType() {
		return this.busiType;
	}
	
	public void setBusiType(java.lang.Long value) {
		this.busiType = value;
	}

	public java.lang.Long getObj2Uid() {
		return this.obj2Uid;
	}
	
	public void setObj2Uid(java.lang.Long value) {
		this.obj2Uid = value;
	}

	public java.lang.String getObj2Uname() {
		return this.obj2Uname;
	}
	
	public void setObj2Uname(java.lang.String value) {
		this.obj2Uname = value;
	}

	public java.lang.Long getObj2PartyId() {
		return this.obj2PartyId;
	}
	
	public void setObj2PartyId(java.lang.Long value) {
		this.obj2PartyId = value;
	}

	public java.lang.String getObj2PartyName() {
		return this.obj2PartyName;
	}
	
	public void setObj2PartyName(java.lang.String value) {
		this.obj2PartyName = value;
	}

	public java.lang.Long getObj2Type() {
		return this.obj2Type;
	}
	
	public void setObj2Type(java.lang.Long value) {
		this.obj2Type = value;
	}

	public java.lang.String getChgBefore() {
		return this.chgBefore;
	}
	
	public void setChgBefore(java.lang.String value) {
		this.chgBefore = value;
	}

	public java.lang.String getChgAfter() {
		return this.chgAfter;
	}
	
	public void setChgAfter(java.lang.String value) {
		this.chgAfter = value;
	}

	public java.lang.Long getChgValue() {
		return this.chgValue;
	}
	
	public void setChgValue(java.lang.Long value) {
		this.chgValue = value;
	}

	public java.lang.Long getChgType() {
		return this.chgType;
	}
	
	public void setChgType(java.lang.Long value) {
		this.chgType = value;
	}

	public java.lang.String getRemark() {
		return this.remark;
	}
	
	public void setRemark(java.lang.String value) {
		this.remark = value;
	}

	public java.lang.String getUip() {
		return this.uip;
	}
	
	public void setUip(java.lang.String value) {
		this.uip = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.lang.Long getUid() {
		return this.uid;
	}
	
	public void setUid(java.lang.Long value) {
		this.uid = value;
	}

	public java.lang.String getUname() {
		return this.uname;
	}
	
	public void setUname(java.lang.String value) {
		this.uname = value;
	}

	public java.lang.String getExt1() {
		return this.ext1;
	}
	
	public void setExt1(java.lang.String value) {
		this.ext1 = value;
	}


	
	public RechargeRecord() {
	}
	
	public RechargeRecord(boolean qryflag) {
	    if(qryflag){
	    		this.rcdId = null;
				this.obj1Uid = null;
				this.obj1Uname = null;
				this.obj1PartyId = null;
				this.obj1PartyName = null;
				this.obj1Type = null;
				this.busiType = null;
				this.obj2Uid = null;
				this.obj2Uname = null;
				this.obj2PartyId = null;
				this.obj2PartyName = null;
				this.obj2Type = null;
				this.chgBefore = null;
				this.chgAfter = null;
				this.chgValue = null;
				this.chgType = null;
				this.remark = null;
				this.uip = null;
				this.createTime = null;
				this.uid = null;
				this.uname = null;
				this.ext1 = null;
			    }
	}


	public RechargeRecord(
	    java.lang.Long inRcdId,
	    java.lang.Long inObj1Uid,
	    java.lang.String inObj1Uname,
	    java.lang.Long inObj1PartyId,
	    java.lang.String inObj1PartyName,
	    java.lang.Long inObj1Type,
	    java.lang.Long inBusiType,
	    java.lang.Long inObj2Uid,
	    java.lang.String inObj2Uname,
	    java.lang.Long inObj2PartyId,
	    java.lang.String inObj2PartyName,
	    java.lang.Long inObj2Type,
	    java.lang.String inChgBefore,
	    java.lang.String inChgAfter,
	    java.lang.Long inChgValue,
	    java.lang.Long inChgType,
	    java.lang.String inRemark,
	    java.lang.String inUip,
	    java.util.Date inCreateTime,
	    java.lang.Long inUid,
	    java.lang.String inUname,
		java.lang.String inExt1
	 ) {
		super();
				this.rcdId = inRcdId;
				this.obj1Uid = inObj1Uid;
				this.obj1Uname = inObj1Uname;
				this.obj1PartyId = inObj1PartyId;
				this.obj1PartyName = inObj1PartyName;
				this.obj1Type = inObj1Type;
				this.busiType = inBusiType;
				this.obj2Uid = inObj2Uid;
				this.obj2Uname = inObj2Uname;
				this.obj2PartyId = inObj2PartyId;
				this.obj2PartyName = inObj2PartyName;
				this.obj2Type = inObj2Type;
				this.chgBefore = inChgBefore;
				this.chgAfter = inChgAfter;
				this.chgValue = inChgValue;
				this.chgType = inChgType;
				this.remark = inRemark;
				this.uip = inUip;
				this.createTime = inCreateTime;
				this.uid = inUid;
				this.uname = inUname;
				this.ext1 = inExt1;
			}



	@Transient
	private Date startDate;
	@Transient
	private Date endDate;

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

}

